package com.team11.server.controller.admin;

import com.team11.server.service.admin.Admin_SelTidAndTName_Service;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@CrossOrigin
@RestController
@Api(tags = "管理员接口")
public class Admin_SelTidAndTName_Controller {
    @Autowired
    private Admin_SelTidAndTName_Service admin_selTidAndTName_service;
    @ApiOperation("下拉框(以工号-姓名的方式获取教师)")
    @GetMapping("/SelTidAndTName")
    public List<String> selTidAndTName(){
        return admin_selTidAndTName_service.selTidAndTName();
    }
}
